package com.lzh.oop;

import com.lzh.oop.bean.*;

public class OopTest_1 {
    public static void main(String[] args) {
        ShapeManager shapeManager=new ShapeManager();

        Rectangle_imp rect = new Rectangle_imp(new Point(10, 10), 100, 200);
        Triangle tri = new Triangle(new Point(0, 10), new Point(50, 50), new Point(150, 0));
        Circle cir = new Circle(new Point(100, 100), 100);

        shapeManager.addShape(rect);
        shapeManager.addShape(tri);
        shapeManager.addShape(cir);
        shapeManager.drawShapes();
        System.out.println("-------------------");
        shapeManager.delShape(rect);
        shapeManager.drawShapes();
    }
}
